js detect screen size change

79

Get width of screen on resize event -

@HostListener('window:resize', ['$event'])
onResize(event) {
  this.innerWidth = window.innerWidth;
}

Comments

Submit
0 Comments